package com.ytz.service.impl;

import com.ytz.service.IPaymentService;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.config.annotation.Method;
//超时时间，及远程调用的方法（不写则全部注册）（相当于openfeign生产者的controller界面）、重试次数声明


@DubboService(timeout = 5000,methods = {@Method(name ="index",retries = 2)},cluster = "failfast")
public class PaymentServiceImpl implements IPaymentService {
    public String index(){
        return  "payment success";
    }
}
